<!DOCTYPE html>
<!-- saved from url=(0048)http://v3.bootcss.com/examples/navbar-fixed-top/ -->
<html lang="zh-CN" xmlns:text-align="http://www.w3.org/1999/xhtml" xmlns:border-radius="http://www.w3.org/1999/xhtml"
      xmlns:align="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">

    <title>云数据</title>
    <!-- Bootstrap core CSS -->
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/css/more.css" rel="stylesheet">
    <!-- Custom styles for this template -->
    <link href="/static/css/navbar-fixed-top.css" rel="stylesheet">

    <link href="/static/css/ico.css" rel="stylesheet">
    <!--从虎嗅网中导入的带阴影的边框，代码保存在/static/css/customize.css中-->
    <link href="/static/css/customize.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<style type="text/css">
a:link,a:visited{
 text-decoration:none;  /*超链接无下划线*/
}

</style>


  </head>

  <body  style="background-repeat:no-repeat; background-attachment: fixed;">

    <!-- Fixed navbar -->
    <nav class="navbar navbar-inverse navbar-fixed-top"><!--导航标签-->
      <div class="container"> <!-- 导航的logo -->
        <div class="navbar-header"><!--导航的头部分-->
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="/">云数据</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav"> <!--导航栏中的内容-->
            <li class="active"><a href="/">全部</a></li>
            <li class="active"><a href="/hot/">最热</a></li>
            <li class="active"><a href="/technology/">技术区</a></li>
                {% for category in bbs_category %}
                    {% ifequal category.id cate_id %}
                        <li class="active"><a href="/category/{{ category.id }}/">{{ category.name }}</a></li>
                    {% else %}
                        <li class=""><a href="/category/{{ category.id }}/">{{ category.name }}</a></li>
                    {% endifequal %}
                {% endfor %}
          </ul>

          <ul class="nav navbar-nav navbar-right"> <!--登陆设置，在最右端的下拉菜单-->
           <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" role="button" aria-expanded="false">
                  {% if user.is_authenticated %}  <!--信息认证-->
                    {{ user.username }}
                  {% else %}
                     登录
                  {% endif %}

                  <span class="caret"></span>
              </a>
            <ul class="dropdown-menu">
                {% if user.is_authenticated %}

                    <li><a href="/home/{{ user.username }}/">个人中心</a></li>

                    {% else %}

                    <li ><a href="/login/">登录</a></li>
                {% endif %}

                <li ><a href="/logout/">注销</a></li>
            </ul>

{#           <li><a href="/login/">登录</a></li>#}
{#                <li><a href="/logout/">注销</a></li>#}
</li>
            </ul>
{#<ul class="dropdown-menu" role="menu">#}
{#                <li><a href="/login/">登录</a></li>#}
{#                <li><a href="/logout/">注销</a></li>#}
{##}
{#              </ul>#}

        </div><!--/.nav-collapse -->
      </div>
    </nav>
    {% block index__part %}
        {% include "index_part.html" %}
{% endblock %}
    <script src="/static/js/jquery-2.1.1.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->


</body></html>